@import './base.css';

#app {
  max-width: 1280px;
  margin: 0 auto;
  font-weight: normal;
  /* 设置16:9比例容器 */
  aspect-ratio: 16 / 9;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

a,
.green {
  text-decoration: none;
  color: hsla(160, 100%, 37%, 1);
  transition: 0.4s;
  padding: 3px;
}

@media (hover: hover) {
  a:hover {
    background-color: hsla(160, 100%, 37%, 0.2);
  }
}

@media (min-width: 1024px) {
  body {
    display: flex;
    place-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding: 0;
  }

  #app {
    padding: 0;
    /* 保持16:9比例 */
    aspect-ratio: 16 / 9;
    height: 90vh;
    max-height: 90vh;
  }
}

/* 响应式处理 */
@media (max-width: 1023px) {
  #app {
    height: auto;
    min-height: 100vh;
    aspect-ratio: auto;
    padding: 1rem;
  }
}
